
package org.xteam.sled.ast;

import org.xteam.parser.runtime.Span;

public class Constructor extends org.xteam.parser.runtime.AstNode {
	
	
	protected org.xteam.parser.runtime.AstList<OpName> opnames;
	protected org.xteam.parser.runtime.AstList<Operand> operands;
	protected Ident type;
	protected org.xteam.parser.runtime.AstList<Branch> branches;
	
	public Constructor(Span span, org.xteam.parser.runtime.AstList<OpName> opnames,org.xteam.parser.runtime.AstList<Operand> operands,Ident type,org.xteam.parser.runtime.AstList<Branch> branches) {
		super(span);
		this.opnames = opnames;
		this.operands = operands;
		this.type = type;
		this.branches = branches;
	}
	
	
	public org.xteam.parser.runtime.AstList<OpName> getOpnames() {
		return opnames;
	}
	
	public void setOpnames(org.xteam.parser.runtime.AstList<OpName> opnames) {
		this.opnames = opnames;
	}
	
	public org.xteam.parser.runtime.AstList<Operand> getOperands() {
		return operands;
	}
	
	public void setOperands(org.xteam.parser.runtime.AstList<Operand> operands) {
		this.operands = operands;
	}
	
	public Ident getType() {
		return type;
	}
	
	public void setType(Ident type) {
		this.type = type;
	}
	
	public org.xteam.parser.runtime.AstList<Branch> getBranches() {
		return branches;
	}
	
	public void setBranches(org.xteam.parser.runtime.AstList<Branch> branches) {
		this.branches = branches;
	}
	

	public void visit(ISledVisitor visitor) {
		visitor.visitConstructor(this);
	}
}
